home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultimedia 2
/
Ultimedia 2.iso
/
tools
/
soundtools
/
playsid
/
jukebox.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-04-16
|
830b
|
44 lines
/*
* PlaySID: Jukebox example
*
* rx jukebox "filename"
*
* or
*
* jukebox.rexx "filename"
*
*/
if(~show('l', 'rexxsupport.library'))then do
if(~addlib( 'rexxsupport.library', 0, -30, 0))then do
say "Could not open ARexx support library."
exit 10
end
end
file = 'file'
parse arg data
if open(file, data, 'r') then do
address command "run SID:PlaySID"
line = readln(file)
do while ~eof(file)
name = word(line, 1)
tune = word(line, 2)
time = word(line, 3)
if SID_Load(name) then do
say "Playing tune" tune "for" time "seconds in" name
SID_SetTune(tune)
SID_Play()
Delay(time * 50)
SID_Stop()
end
line = readln(file)
end
SID_Quit()
call close(file)
end
else
say "Unable to open file" data"."